#include "FKNNSoundFun.h"
#include "SimpleAudioEngine.h"
#include "Tools/tools/Convert.h"
#include "Game/Script/SoundFun.h"
#include "Games/NiuNiuGameLogic.h"

namespace FKNNSoundFun
{
	void playBackMusic(std::string kName)
	{
		SoundFun::playBackMusic(utility::a_u8(kName));
		cocos2d::log("JDNNSoundFun playBackMusic :%s",utility::a_u8(kName).c_str());
	}

	void stopBackMusic()
	{
		SoundFun::stopBackMusic();
	}

	void playEffect(std::string kName,bool bPreload /*= false*/)
	{
		kName = utility::a_u8(/*LG_FLAG_HN +*/ kName + RAW_KIND);

		SoundFun::playEffect(kName,bPreload);
		cocos2d::log("JDNNSoundFun:%s",kName.c_str());
	}

	void playCardByGender(int iGender,int nCard)
	{
		//playEffect(kName);
	}

	void playEffectByGender(int iGender,std::string kName)
	{
		if (iGender)
		{
			//kName =utility::toString("g_",kName);
		}
		else
		{
			//kName =utility::toString("",kName);
		}

		playEffect(kName);
	}

	void playEffectEX(std::string kName)
	{
		SoundFun::playEffect(kName);
	}

} 
